package com.yu.serviceImpl;

import com.yu.Dao.GoodDao;
import com.yu.DaoImpl.GoodDaoImpl;
import com.yu.Pojo.Goods;
import com.yu.service.GoodService;
import com.yu.utils.Util;

import java.sql.Connection;
import java.util.ArrayList;
import java.util.List;

public class GoodServiceImpl implements GoodService {

    public List<Goods> findAllGoods () throws Exception {
        GoodDao goodDao = new GoodDaoImpl ();
        List<Goods> goodsList = new ArrayList<Goods> ();

        goodsList = goodDao.selectAllGoods ();

        return goodsList;
    }
}
